/**
 * Copyright 2011 Poltman.Ltd; www.poltman.com. All rights reserved.		
 *
 * This file is part of the dspace-poltman project http://www.poltman.com.
 *
 * This is free software; you can redistribute it and/or modify it under
 * the terms of DuraSpace DSpace license detailed in the LICENSE and NOTICE 
 * files at the root of the source tree and available online at
 * http://www.dspace.org/license/
 * 
 */

package com.poltman.dscentral.db.service.dspace;

import java.util.List;

import com.poltman.dscentral.db.entity.dspace.CommunityEntity;
import com.poltman.dscentral.db.exceptions.RepositoryAccessException;
import com.poltman.dscentral.db.exceptions.RepositoryException;




/**
 * 
 * @author z.ciok@poltman.com
 * 
 */
public interface CommunityService  {
	
	public List<CommunityEntity> findFirstLevelCommunities() throws RepositoryAccessException, RepositoryException;
	public CommunityEntity findByCommunityId(Integer communityId) throws RepositoryAccessException, RepositoryException;
	public CommunityEntity findByName(String name) throws RepositoryAccessException, RepositoryException;
	public CommunityEntity save(CommunityEntity community) throws RepositoryAccessException, RepositoryException;
	public int setFixedNameAndShortDescriptionFor(String name, String shortDescription, Integer communityId) throws RepositoryAccessException, RepositoryException;
	public int setFixedIntroductoryTextFor(String introductoryText, Integer communityId) throws RepositoryAccessException, RepositoryException;
	public int setFixedCopyrightTextFor(String copyrightText, Integer communityId) throws RepositoryAccessException, RepositoryException;
}
